home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950329-19950528
/
000200_news@columbia.edu_Fri Apr 21 03:27:37 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
7KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA11686
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Sat, 22 Apr 1995 08:26:04 -0400
Received: by apakabar.cc.columbia.edu id AA25475
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Sat, 22 Apr 1995 08:26:02 -0400
Path: news.columbia.edu!sol.ctr.columbia.edu!howland.reston.ans.net!spool.mu.edu!torn!news.uunet.ca!uunet.ca!torrie!gordon
From: gordon@torrie.org (Gordon Torrie)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: MS-Kermit <--> VMS Kermit ?
Summary: You need a Kermit script. Here it is.
Message-Id: <q9NV4c1w165w@torrie.org>
Date: Thu, 20 Apr 95 23:27:37 -0400
References: <95109.135856HDK@psuvm.psu.edu>
Organization: Torrie Communication Services
Lines: 185
Apparently-To: kermit.misc@watsun.cc.columbia.edu
H. D. Knoble <HDK@psuvm.psu.edu> writes:
| In article <1995Apr19.065916.1@iccgcc.cle.ab.com>, principe@iccgcc.cle.ab.com
| (Tony Principe) says:
|
| >I am using MS Kermit 3.12 to transfer files between my PC and a VAX. The
| >VAX Kermit is Kermit-32 version 3.3.128. Although ascii file transfers
| >work ok, I haven't had any luck with transferring binary files in either
| >direction. I'm not sure if the problem is on the PC end or the VMS end.
| >Is there a particular setup that I need? I've set file type is binary on
| >the sending Kermit.
|
| The solution is to use C-Kermit for VMS.
No it is not.
While C-Kermit undoubtedly has advantages over Kermit-32,
Kermit-32 is not the problem.
The solution is to create a Kermit script that
MS-Kermit then runs. I have done this and include it below.
This script is currently used by several people at work to
successfully transfer files between MS-Kermit 3.12 and
Kermit-32 3.3.128. These file transfers proceed correctly and
quickly even though the users are all connected to the VAX via
terminal servers (DECserver 100s).
Note that you must have ANSI.SYS device driver loaded otherwise
the menus will not display properly. The script could be altered
if you really don't want to load ANSI.SYS.
; VAX/VMS Kermit-32 <-> IBM PC File Transfer setup
; Requires MS-Kermit 3.00
; Gordon Torrie February 1990
;
; July 10, 1991 - Changed the packet length from 94 to 300.
; Acquired Kermit-32 version 3.3.128 to replace
; version 3.3.117 on the VAX. The new version
; supports long packets so we will make use of them.
;
; June 20, 1992 - Changed the packet length from 300 to 1000.
;
; Sept 11, 1994 - Added Blocksize input for Fixed length files.
; (To upload BACKUP saveset files with the
; correct blocksize).
;
; Note: The VAX is assumed to be at the dollar prompt on entry
; to this procedure.
; This procedure returns the VAX to the dollar prompt on
; exit.
SET TAKE-ECHO OFF ; Don't echo this file
SET INPUT ECHO OFF
OUTPUT \26; ; Ensure we are at the dollar prompt
:FTPMENU1
ECHO {\27[2J \27[4mVAX <--> PC File Transfer Setup\27[m\13\10}
ECHO { \27[1mA\27[m = Text files (Ordinary ASCII)\13\10}
ECHO { \27[1mB\27[m = Binary files (No translation)\13\10}
ECHO { \27[1mF\27[m = Fixed-length-record files\13}
ECHO { (Special type of binary file)\13\10}
ECHO { \27[1mX\27[m = Exit from this procedure\13\10
:FTPSTART
ASK \%z {Which type of file? \27[K}
IF NOT DEFINED \%z GOTO FTPSTART
SET INPUT CASE IGNORE ; Ignore case of user-input
IF EQUAL \%z A GOTO FTPASC
IF EQUAL \%z B GOTO FTPBIN
IF EQUAL \%z F GOTO FTPFIX
IF EQUAL \%z X POP
ECHO \27[1mInvalid response.\27[m Choose one of \27[1\{59}5mA, B, F, \27[mor \27[1\{59}5mX\27[m.\13
PAUSE 3 ; Give user time to read
ECHO \13\27[1A\27[K\27[2A ; Erase the message
GOTO FTPSTART
; For Text files
:FTPASC
ECHO {Wait one moment\13\10}
OUTPUT KERMIT\13 ; Start Kermit-32
INPUT Kermit-32> ; Wait for it's prompt
CLEAR ; Clear the input buffer
OUTPUT {SET PARITY NONE\13}
INPUT Kermit-32>
CLEAR
OUTPUT {SET FILE TYPE ASCII\13}
INPUT Kermit-32>
CLEAR
GOTO SERVE
; For Binary Files
:FTPBIN
ECHO {Wait one moment\13\10}
OUTPUT KERMIT\13 ; Start Kermit-32
INPUT Kermit-32> ; Wait for it's prompt
CLEAR ; Clear the input buffer
OUTPUT {SET PARITY SPACE\13}
INPUT Kermit-32>
CLEAR
OUTPUT {SET FILE TYPE BINARY\13}
INPUT Kermit-32>
CLEAR
SET PARITY SPACE
SET FILE TYPE BINARY
GOTO SERVE
; For files with Fixed Length Records such as executable images and
; BACKUP savesets.
:FTPFIX
DEFINE \%z
ASK \%z {Blocksize to use? (Default is 512) \27[K}
IF NOT DEFINED \%z DEFINE \%z 512 ; Set default blocksize if none specified
IF LLT {\%z} 9 GOTO FTPFIX_GO ; Check that a numeric value was specified
ECHO \27[1mInvalid response.\27[m Blocksize must be numeric.\13
PAUSE 3 ; Give user time to read
ECHO \13\27[1A\27[K\27[2A ; Erase the message
GOTO FTPFIX
:FTPFIX_GO
ECHO {Wait one moment\13\10}
OUTPUT KERMIT\13 ; Start Kermit-32
INPUT Kermit-32> ; Wait for it's prompt
CLEAR ; Clear the input buffer
OUTPUT {SET PARITY SPACE\13}
INPUT Kermit-32>
CLEAR
OUTPUT {SET FILE TYPE FIXED\13}
INPUT Kermit-32>
CLEAR
OUTPUT {SET FILE BLOCKSIZE \%z\13}
INPUT Kermit-32>
CLEAR
SET PARITY SPACE
SET FILE TYPE BINARY
:SERVE
; Set parameters common to all file type transfers
:FTPCOM
OUTPUT {SET BLOCK_CHECK_TYPE 3\13}
INPUT Kermit-32>
CLEAR
OUTPUT {SET RECEIVE PACKET_LENGTH 1000\13}
INPUT Kermit-32>
CLEAR
OUTPUT {SET SEND PACKET_LENGTH 1000\13}
INPUT Kermit-32>
CLEAR
OUTPUT {SET FILE NAMING NORMAL_FORM\13}
INPUT Kermit-32>
CLEAR
OUTPUT {SET SERVER_TIMER 0\13}
INPUT Kermit-32>
CLEAR
OUTPUT SERVER\13 ; Put Kermit-32 in server mode
CLEAR
;
:FTPMENU2
ECHO {\27[2J \27[4mVAX <--> PC File Transfer Setup\27[m\13\10}
ECHO { \27[1mG\27[m = Get a file from the VAX\13\10}
ECHO { \27[1mS\27[m = Send a file to the VAX\13\10}
ECHO { \27[1mX\27[m = Exit to previous menu.\13\10}
:FTPFUNC
ASK \%z {Which function? \27[K}
IF NOT DEFINED \%z GOTO FTPFUNC
IF EQUAL \%z X GOTO FTPEXIT
IF EQUAL \%z G GOTO FTPNAME
IF EQUAL \%z S GOTO FTPNAME
ECHO \27[1mInvalid response.\27[m Choose one of \27[1\{59}5mG, S, \27[mor \27[1\{59}5mX\27[m.\13
PAUSE 3 ; Give user time to read
ECHO \13\27[1A\27[K\27[2A ; Erase the message
GOTO FTPFUNC
;
:FTPNAME
ASK \%y {Name of file: }
IF NOT DEFINED \%y GOTO FTPNAME
IF EQUAL \%z G GET \%y
IF EQUAL \%z S SEND \%y
PAUSE 1 ; Give user a chance to read
; any error messages
GOTO FTPMENU2
;
:FTPEXIT
FINISH ; Exit Kermit-32 Server mode
OUTPUT EXIT\13 ; Exit Kermit-32
GOTO FTPMENU1 ; and go to first menu
--
gordon@torrie.org Gord Torrie